-- GENERATED SPELL FOR [Hillsbrad Tailor] --


function spell0_2264(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2590,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2264', 529, 1)
end

function spell1_2264(pUnit, Event) --@Trip,n/a--
pUnit:FullCastSpellOnTarget(101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2264', 3000, 1)
end

function Sorts_2264(pUnit, Event)
local choix_sorts_2264 = math.random(0, 1)
if choix_sorts_2264 == 0 then
pUnit:RegisterEvent('spell0_2264', 1, 1)
end
if choix_sorts_2264 == 1 then
pUnit:RegisterEvent('spell1_2264', 1, 1)
end
end

function mob2264_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2264', math.random(1500, 3000), 1)
end

function mob2264_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2264_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2264_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2264, 1, 'mob2264_Action')
RegisterUnitEvent(2264, 2, 'mob2264_Leave')
RegisterUnitEvent(2264, 3, 'mob2264_Kill')
RegisterUnitEvent(2264, 4, 'mob2264_Die')
